package breakout2014;

import com.jme3.input.InputManager;
import com.jme3.math.FastMath;
import com.jme3.math.Vector2f;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.control.AbstractControl;


public class BrickControl extends AbstractControl {
    
    public BrickControl() {
    }
    
    @Override
    protected void controlUpdate(float tpf) {
        if (spatial.getUserData("hit")){
            spatial.removeFromParent();
        }
    }

    @Override
    protected void controlRender(RenderManager rm, ViewPort vp) {}
    
}
